home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1995 May / PC Answers CD-ROM 7 (Future Publishing) (May 1995).iso / vbits / code / lang / intro / smile.odl < prev    next >
Encoding:
Microsoft Object Description Language  |  1994-10-06  |  2.2 KB  |  77 lines

  1. // smile.odl : type library source for OLE Custom Control project.
  2.  
  3. // This file will be processed by the Make Type Library (mktyplib) tool to
  4. // produce the type library (smile.tlb) that will become a resource in
  5. // smile.ocx.
  6.  
  7. #include <olectl.h>
  8.  
  9. [ uuid(EDEC4488-C101-101B-AC9D-00AA0047D4FD), version(1.0),
  10.   helpstring("Smile OLE Custom Control module") ]
  11. library SmileLib
  12. {
  13.     importlib(STDOLE_TLB);
  14.     importlib(STDTYPE_TLB);
  15.  
  16.     //  Primary dispatch interface for CSmileCtrl
  17.  
  18.     [ uuid(EDEC4486-C101-101B-AC9D-00AA0047D4FD),
  19.       helpstring("Dispatch interface for Smile Control") ]
  20.     dispinterface _DSmile
  21.     {
  22.         properties:
  23.             // NOTE - ClassWizard will maintain property information here.
  24.             //    Use extreme caution when editing this section.
  25.             //{{AFX_ODL_PROP(CSmileCtrl)
  26.             [id(DISPID_BACKCOLOR), bindable, requestedit] OLE_COLOR BackColor;
  27.             [id(DISPID_CAPTION), bindable, requestedit] BSTR Caption;
  28.             [id(DISPID_FONT), bindable] IFontDisp* Font;
  29.             [id(DISPID_FORECOLOR), bindable, requestedit] OLE_COLOR ForeColor;
  30.             [id(1)] boolean Sad;
  31.             //}}AFX_ODL_PROP
  32.  
  33.         methods:
  34.             // NOTE - ClassWizard will maintain method information here.
  35.             //    Use extreme caution when editing this section.
  36.             //{{AFX_ODL_METHOD(CSmileCtrl)
  37.             [id(DISPID_REFRESH)] void Refresh();
  38.             [id(2)] void Beep(short uAlert);
  39.             //}}AFX_ODL_METHOD
  40.  
  41.             [id(DISPID_ABOUTBOX)] void AboutBox();
  42.     };
  43.  
  44.     //  Event dispatch interface for CSmileCtrl
  45.  
  46.     [ uuid(EDEC4487-C101-101B-AC9D-00AA0047D4FD),
  47.       helpstring("Event interface for Smile Control") ]
  48.     dispinterface _DSmileEvents
  49.     {
  50.         properties:
  51.             //  Event interface has no properties
  52.  
  53.         methods:
  54.             // NOTE - ClassWizard will maintain event information here.
  55.             //    Use extreme caution when editing this section.
  56.             //{{AFX_ODL_EVENT(CSmileCtrl)
  57.             [id(DISPID_CLICK)] void Click();
  58.             [id(DISPID_KEYPRESS)] void KeyPress(short* KeyAscii);
  59.             [id(1)] void Outside();
  60.             [id(2)] void Inside(short X, short Y);
  61.             //}}AFX_ODL_EVENT
  62.     };
  63.  
  64.     //  Class information for CSmileCtrl
  65.  
  66.     [ uuid(EDEC4485-C101-101B-AC9D-00AA0047D4FD),
  67.       helpstring("Smile Control") ]
  68.     coclass Smile
  69.     {
  70.         [default] dispinterface _DSmile;
  71.         [default, source] dispinterface _DSmileEvents;
  72.     };
  73.  
  74.  
  75.     //{{AFX_APPEND_ODL}}
  76. };
  77.